package com.dreamwhale.accelerator.manage;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

/**
 * <p>Title: ShowViewController.java</p>  
 * <p>Description: 页面展示管理</p>
 */
@RestController
@RequestMapping("/backstage")
public class ShowViewYController {

	@RequestMapping("/login")
	public ModelAndView login(HttpSession session) {
		session.removeAttribute("user");
		ModelAndView mav = new ModelAndView();
		mav.setViewName("/login");
		return mav;
	}


	@RequestMapping("/index")
	public ModelAndView index(HttpSession session) {
		ModelAndView mav = new ModelAndView();
		mav.setViewName("/index");
		return mav;
	}
}